#pragma once
class CLyfString
{
	friend CLyfString operator+(const char* pStr, CLyfString strObj);

	friend bool operator==(const char* pStr, CLyfString strObj);

public:
	CLyfString();
	CLyfString(const char* pStr);
	CLyfString(CLyfString &strObj);
	virtual ~CLyfString();

	char* c_str() const;
	int length();
	int compare(const char* pStr);
	int compare(const CLyfString strObj);

	CLyfString& operator+(const char* pStr);
	CLyfString& operator+(const CLyfString strObj);

	void operator=(const char* pStr);
	void operator=(const CLyfString strObj);

	void operator+=(const char* pStr);
	void operator+=(const CLyfString strObj);

	bool operator==(const char* pStr);
	bool operator==(const CLyfString strObj);

private:
	char* m_pString;
	unsigned int m_nLen;
};

